#pragma once
#include "Object.h"
#include "RSManager.h"
#include <math.h>
class WallTurret: public Object
{
private:
	Sprite*_sAngle;
	Sprite*_sSimple;
	Sprite*_sStart;	
	bool _isShooting;
	float _angle;
	float delay2;	
public:
	void init();
	void update();
	void render();
	int GetNumFrame(float angle);
	float SetAngle(Box* boxContra);
	int ConvertIndex(int index);
	Box* getPos();
	//BlockHouse(D3DXVECTOR2 pos);
	WallTurret(Box* _box);
	~WallTurret();

	virtual Box* getCollisionBox();

};

